package cn.com.ghy.android.widget.report;

import cn.com.ghy.android.widget.R;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabWidget;

/**
 * @软件著作权:金红叶纸业集团有限公司
 * @系统名称:SFA系统
 * @Description:订单报表选项卡
 * @author wuz  @date 2011-5-19 08:45:34
 * @版本历史:v1.0
 * @Copyright:Copyright (c) 2011-2012 
 */

public class OrderReport extends TabActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.order_report);
		TabHost tabHost = this.getTabHost();
		tabHost.addTab(tabHost.newTabSpec("tab1")
				.setIndicator(this.getResources().getString(R.string.orderReportQuery))
				.setContent(new Intent(OrderReport.this, OrderReportQuery.class)));
		tabHost.addTab(tabHost.newTabSpec("tab2")
				.setIndicator(this.getResources().getString(R.string.orderSellReport))
				.setContent(new Intent(OrderReport.this, OrderSellReport.class)));
		tabHost.addTab(tabHost.newTabSpec("tab3").setIndicator("品类销售")
				.setContent(new Intent(OrderReport.this, OrderSellCategory.class)));

		TabWidget tabWidget = tabHost.getTabWidget();
		for (int i = 0; i < tabWidget.getChildCount(); i++) {
			tabWidget.getChildAt(i).getLayoutParams().height = this.getWindowManager()
					.getDefaultDisplay().getHeight() / 16;
		}
	}
}
